<?php


/**
 * Notes:
 * PROJECT_NAME : ERP v1.8 重构erp
 * User: 夏鱼儿<397072174@qq.com>
 * Date: 2024/3/14
 * Time: 9:51
 */

namespace app\api\validate;

use think\Validate;

class LoginValidate extends Validate
{
    protected $rule = [
        'user_name' => 'require',
        'password'  => 'require',
    ];

    protected $message = [
        'user_name.require' => '用户名不能为空',
        'password.require'  => '密码不能为空',
    ];

    protected $scene = [
        'login'       => ['user_name', 'password'],
    ];
}